package com.study.factory.factorymethod;

public class Test {
    public static void main(String[] args) {
        ICourseFactory factory = new JavaFactory();
        ICourse course = factory.create();
        course.record();

        ICourseFactory factory1 = new PythonFactory();
        ICourse course1 = factory1.create();
        course1.record();
    }
}
